package com.corner.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum WxApiType {

	/**
	 * JSAPI下单
	 */
	JSAPI_PAY("/v3/pay/transactions/jsapi"),

	/**
	 * 查询订单（商户订单号查询）
	 */
	ORDER_QUERY_BY_NO("/v3/pay/transactions/out-trade-no/%s"),

	/**
	 * 关闭订单
	 */
	CLOSE_ORDER_BY_NO("/v3/pay/transactions/out-trade-no/%s/close"),

	/**
	 * 申请退款
	 */
	DOMESTIC_REFUNDS("/v3/refund/domestic/refunds"),

	/**
	 * 查询单笔退款
	 */
	DOMESTIC_REFUNDS_QUERY("/v3/refund/domestic/refunds/%s"),

	/**
	 * 申请交易账单
	 */
	TRADE_BILLS("/v3/bill/tradebill"),

	/**
	 * 申请资金账单
	 */
	FUND_FLOW_BILLS("/v3/bill/fundflowbill"),

	/**
	 * 付款到用户零钱
	 */
	PAY_TO_USER_PURSE("/v3/transfer/batches"),

	/**
	 * 商家批次单号查询批次单API
	 */
	TRANSFER_BATCHES_QUERY("/v3/transfer/batches/out-batch-no/%s?need_query_detail=%s&detail_status=%s"),

	/**
	 * 商家明细单号查询明细单API
	 */
	BATCHES_DETAILS_QUERY("/v3/transfer/batches/out-batch-no/%s/details/out-detail-no/%s");

	/**
	 * 类型
	 */
	private final String type;
}
